import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Register from '@/components/register/index'
import RegisterPhone from '@/components/register/register'
import NumberVer from '@/components/register/numberVerification'
import RegSuccess from '@/components/register/regSuccess'
import goodsDetail from '@/components/styleInquiry/goodsDetail'
import brandChose from '@/components/styleInquiry/brandChose'
import filterCondition from '@/components/styleInquiry/filterCondition'
import valuationData from '@/components/styleInquiry/valuationData'
import searchResult from '@/components/styleInquiry/searchResult'
import preciseValuation from '@/components/styleInquiry/preciseValuation'
import evaluateNumber from '@/components/styleInquiry/evaluateNumber'
import mycheck from '@/components/mycheck/mycheck' // 我的账本
import searchBrand from '@/components/mycheck/searchBrand' // 搜索品牌
import checkDetails from '@/components/mycheck/checkDetails' // 账本详情
import selltime from '@/components/mycheck/selltime' // 卖包时间
import timeSearch from '@/components/mycheck/timeSearch' // 起止时间
import Home from '@/components/Home'
import ExportExcel from '@/components/ExportExcel'
import BrandChoseFilter from '@/components/BrandChoseFilter'
import city from '@/components/mycheck/indexbar/city'

Vue.use(Router)
export default new Router({
  routes: [{
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/BrandChoseFilter',
    name: 'BrandChoseFilter',
    component: BrandChoseFilter
  },
  {
    path: '/register',
    name: 'Register',
    component: Register,
    children: [{
      path: 'regPhone',
      name: 'RegisterPhone',
      component: RegisterPhone
    }, {
      path: '/',
      name: 'numberVer',
      component: NumberVer
    }, {
      path: 'regSuccess',
      name: 'regSuccess',
      component: RegSuccess
    }]
  },
  {
    path: '/brandChose',
    name: 'brandChose',
    component: brandChose
  },
  {
    path: '/goodsDetail',
    name: 'goodsDetail',
    component: goodsDetail
  },
  {
    path: '/filterCondition',
    name: 'filterCondition',
    component: filterCondition
  },
  {
    path: '/valuationData',
    name: 'valuationData',
    component: valuationData
  },
  {
    path: '/searchResult',
    name: 'searchResult',
    component: searchResult
  },
  {
    path: '/preciseValuation',
    name: 'preciseValuation',
    component: preciseValuation
  },
  {
    path: '/evaluateNumber',
    name: 'evaluateNumber',
    component: evaluateNumber
  },
  {
    path: '/mycheck',
    name: 'mycheck',
    component: mycheck
  },
  {
    path: '/timeSearch',
    name: 'timeSearch',
    component: timeSearch
  },
  {
    path: '/checkDetails',
    name: 'checkDetails',
    component: checkDetails
  },
  {
    path: '/selltime',
    name: 'selltime',
    component: selltime
  },
  {
    path: '/searchBrand',
    name: 'searchBrand',
    component: searchBrand
  },
  {
    path: '/city',
    name: 'city',
    component: city
  },
  {
    path: '/Home',
    name: 'Home',
    component: Home
  },
  {
    path: '/exportExcel',
    name: 'exportExcel',
    component: ExportExcel
  }
  ]
})
